package cn.gson.school.entity.jiuye;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.gson.school.entity.xitong.UserInfoEntity;

/**
 * 面试经验表
 * @author 华少
 *
 */
@Entity
@Table(name = "tb_jy_interview_experience")
public class InterviewExperienceEntity {
	/**
	 * interview_experience_id 面试资料经验编号
	 *  userinfo_id 用户详情id
	 * interview_experience_company 公司名称
	 *  interview_experience_question 面试问题
	 * interview_experience_answer 答案 \
	 *  question_type 问题类型 
	 *  interview_experience_time 创建时间
	 */
	@Id
	@Column(name = "interview_experience_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long interviewExperienceId;
	
	@ManyToOne()
	@JoinColumn(name = "userinfo_id")
	private UserInfoEntity userInfoId;

	@Column(name = "interview_experience_company")
	private String interviewExperienceCompany;

	@Column(name = "interview_experience_question")
	private String interviewExperienceQuestion;

	@Column(name = "interview_experience_answer")
	private String interviewExperienceAnswer;

	@Column(name = "question_type")
	private String questionType;
	
	@Column(name = "interview_experience_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date interviewExperienceTime;
	
	
	public Long getInterviewExperienceId() {
		return interviewExperienceId;
	}

	public void setInterviewExperienceId(Long interviewExperienceId) {
		this.interviewExperienceId = interviewExperienceId;
	}

	public UserInfoEntity getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(UserInfoEntity userInfoId) {
		this.userInfoId = userInfoId;
	}

	public String getInterviewExperienceCompany() {
		return interviewExperienceCompany;
	}

	public void setInterviewExperienceCompany(String interviewExperienceCompany) {
		this.interviewExperienceCompany = interviewExperienceCompany;
	}

	public String getInterviewExperienceQuestion() {
		return interviewExperienceQuestion;
	}

	public void setInterviewExperienceQuestion(String interviewExperienceQuestion) {
		this.interviewExperienceQuestion = interviewExperienceQuestion;
	}

	public String getInterviewExperienceAnswer() {
		return interviewExperienceAnswer;
	}

	public void setInterviewExperienceAnswer(String interviewExperienceAnswer) {
		this.interviewExperienceAnswer = interviewExperienceAnswer;
	}

	public String getQuestionType() {
		return questionType;
	}

	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}

	public Date getInterviewExperienceTime() {
		return interviewExperienceTime;
	}

	public void setInterviewExperienceTime(Date interviewExperienceTime) {
		this.interviewExperienceTime = interviewExperienceTime;
	}

	@Override
	public String toString() {
		return "InterviewExperienceEntity [interviewExperienceId=" + interviewExperienceId + ", userInfoId="
				+ userInfoId + ", interviewExperienceCompany=" + interviewExperienceCompany
				+ ", interviewExperienceQuestion=" + interviewExperienceQuestion + ", interviewExperienceAnswer="
				+ interviewExperienceAnswer + ", questionType=" + questionType + ", interviewExperienceTime="
				+ interviewExperienceTime + "]";
	}


}
